package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.RoleMapper;
import com.richest.api.service.IRoleService;
import com.richest.bean.RoleBean;

/**
 * 角色信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class RoleServiceImpl implements IRoleService {

	@Autowired
	private RoleMapper mapper;

	@Override
	public Integer roleAdd(RoleBean bean) {
		return mapper.roleAdd(bean);
	}

	@Override
	public Integer roleUpdate(RoleBean bean) {
		return mapper.roleUpdate(bean);
	}

	@Override
	public Integer roleDelete(Long id) {
		return mapper.roleDelete(id);
	}

	@Override
	public RoleBean roleSelectOne(Long id) {
		return mapper.roleSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> roleSelectMap(Map<String, Object> params) {
		return mapper.roleSelectMap(params);
	}
}
